<template>
  <div id="app">
    <nav>
      <router-link to="/">
        <div>
          <van-icon name="wap-home-o" size="20" />

        <p>首页</p>

        </div>
      </router-link>
      <router-link to="/jiaoyidating"> <div>
        <van-icon name="chart-trending-o" size="20" />

      <p>交易大厅</p>

      </div></router-link>
      <router-link to="/quanzi"> <div>
        <van-icon name="smile-o" size="20" />

      <p>圈子</p>

      </div></router-link>
      <router-link to="/gouwuche"> <div>
        <van-icon name="shopping-cart-o" size="20" />

      <p>购物车</p>

      </div></router-link>
      <router-link to="/wode"> <div>
        <van-icon name="manager-o" size="20" />

      <p>我的</p>

      </div></router-link>
    </nav>
    <router-view/>
  </div>
</template>

<style lang="scss">
  *{
    margin: 0;
    padding: 0;
  }
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
/*
首页底部路由切换
*/

nav {
  position: fixed;
  bottom: 0px;
  left: 0px;
  background: whitesmoke;
  width: 100%;
  /*
  这个设置成最大 以免有定位会覆盖
  */
 z-index: 999;

  a {
    font-weight: bold;
    color: #2c3e50;
    padding: 0px 24px;
    text-decoration: none;
    height: 70px;
   
    float: left;
    text-align: center;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
  a div{
    padding-top: 10px ;
  }
  a p{
    font-size: 10px;
    padding-top: 0px;
  }

}
</style>
